package com.teaRestaurant.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("order_detail")
public class OrderDetail {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String orderNo;
    private Long comboId;
    private Long dishId;
    private Integer number;
    @TableField(exist = false)
    private String dishName;
    @TableField(exist = false)
    private String comboName;
    @TableField(exist = false)
    private List<ComboDetail> comboDetailList;
}
